//This class will let you fell supernatural!
package Array;
import java.util.*;
import java.io.*;
public class Magus{
	private char letter(){
		int b=Math.abs(new Random().nextInt()%26);
		char c=(char)(65+b);
		return c;
	}
	private int num(){
		int num=Math.abs(new Random().nextInt()%100)+1;
		return num;
	}
	public static void main(String args[])throws IOException{
	  Date date1 = new Date();
		System.out.println("-------------读心术游戏--------------------------作者：赵健-------------------");
		System.out.println("请任意想一个正两位数，减去个位和十位的数，在下表找到差值。");
		System.out.println("请记住该差值前面的字母。");
		Magus m=new Magus();
		char c=m.letter();
		for(int i=0;i<100;i++){
			if(i%10==0){
				System.out.println();
			}
			if(i%9==0){
				System.out.print("["+c+"] "+i+"\t");
			}else{
				int n=m.num();
				if(n%9==0){
					n++;
					System.out.print("["+m.letter()+"] "+n+"\t");
				}else{
					System.out.print("["+m.letter()+"] "+n+"\t");
				}
			}
		}
		System.out.println("请按任意键后敲回车继续下一步！");
		Date date2 = new Date();
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		String str=buf.readLine();
		while(str.length()>0){
			System.out.println("该字母是："+c);
			System.out.println("o(∩_∩)o.....谢谢试玩！\n");
			break;
		}
		
		System.out.println(date2.getTime()-date1.getTime());
	}
}
